package com.bw.cinema

import com.bw.cinema.entity.MutilTypeEntity
import com.bw.cinema.entity.MutilVideoEntity
import com.bw.lib_net.BaseRes
import kotlinx.coroutines.flow.Flow
import retrofit2.http.GET
import retrofit2.http.Query

interface ApiService {
    //获取类型
    @GET("/videotype/getMutilType")
    fun getMutilType(): Flow<BaseRes<List<MutilTypeEntity>>>

    //获取二级类型
    @GET("/videotype/getMutilTypeByPid")
    fun getSubMutilType(@Query("pid") id: Int): Flow<BaseRes<List<MutilTypeEntity>>>

    //获取数据
    @GET("/videomulti/getMutilVideoByTypeId")
    fun getMutilVideo(
        @Query("page") page: Int,
        @Query("pagesize") size: Int,
        @Query("typeid") id: Int
    ): Flow<BaseRes<List<MutilVideoEntity>>>

    //猜您喜欢
    @GET("/videomulti/getRecommendMutilVideo")
    fun getRecommendMutilVideo(
        @Query("page") page: Int,
        @Query("pagesize") size: Int
    ): Flow<BaseRes<List<MutilVideoEntity>>>
}